package com.violet.domain.dto.manager;

import com.violet.annotation.transition.TFormPrice;
import com.violet.annotation.verify.VCanNull;
import com.violet.annotation.verify.VStringSize;
import com.violet.domain.dto.DTO;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
public class MProductDto implements DTO {
    @VStringSize(min = 2, max = 20)
    private String name;
    @VStringSize(min = 4, max = 20)
    private String description;

    private String categoryId;

    @TFormPrice
    private Double currentPrice;
    @TFormPrice
    private Double originalPrice;

    private Integer stock;
    private Boolean status;
    private String unit;

    @VCanNull(value = true)
    private MultipartFile image;
}
